#include <conio.h>
#include <iostream>

using namespace std;
class CRectangle
{
	int x, y;
public :
	void Setvalues (int a, int b);
	int area ();

};
void CRectangle ::Setvalues (int a, int b)
{
	x = a; 
	y = b;
}

int CRectangle::area ()
{
	return (x*y);
}
int main ()
{
	CRectangle*rect = new CRectangle;
	rect ->Setvalues (3,4);
	cout<<"rect: "<< rect -> area();
	getch ();
	return 0;
}